public class Sample{
	
	//Native methods declarations
  	native int JMPUSBGetDLLVersion();
  	native int JMPUSBGetDeviceCount(int pVID_PID);
  	native int JMPUSBOpen(int instance, int pVID_PID, int pEP, int dwDir, int dwReserved);
  	native int JMPUSBRead(int handle, int pData, int dwLen, int pLength, int dwMilliseconds);
  	native int JMPUSBWrite(int handle, int pData, int dwLen, int pLength, int dwMilliseconds);
  	native int JMPUSBReadInt(int handle, int pData, int dwLen, int pLength, int dwMilliseconds);
  	native int JMPUSBClose(int handle);
	
	//Load the library
  	static {
    		System.loadLibrary("jmpusbapi");
  	}

  	public static void main(String args[]) {
	//Create class instance
	Sample sample =new Sample();

	//Call native method
	System.out.println(sample.JMPUSBGetDLLVersion());
  }
}